public class RedisTest {

    public static void main(String[] args) {
        JedisPoolConfig conf = new JedisPoolConfig();
        Set<HostAndPort> jdsCN = new HashSet<HostAndPort>();
        jedisClusterNode.add(new HostAndPort("172.18.141.99", 7001));
        jedisClusterNode.add(new HostAndPort("172.18.141.99", 7002));
        jedisClusterNode.add(new HostAndPort("172.18.141.99", 7003));
        jedisClusterNode.add(new HostAndPort("172.18.141.99", 7004));
        jedisClusterNode.add(new HostAndPort("172.18.141.99", 7005));
        jedisClusterNode.add(new HostAndPort("172.18.141.99", 7006));
        jedisClusterNode.add(new HostAndPort("172.18.141.99", 7007));
        jedisClusterNode.add(new HostAndPort("172.18.141.99", 7008));
        JedisCluster jcd = new JedisCluster(jedisClusterNode, config);
        jcd.set("name:999","redis");
        String value = jcd.get("name:999");
    }
}